package com.Gameplay.Combat.Hitbox.impl;

import com.Gameplay.Combat.Hitbox.Hitbox;
import com.Gameplay.character.Role.parentRole;

public class RectangleHitbox implements Hitbox {
    //人物边界碰撞箱
    private double Rwidth;
    private double Lwidth;
    private double Uheight;
    private double Dheight;


    @Override
    public void setBox(double currentX,double currentY) {
           Lwidth= currentX-75;
           Rwidth=currentX+75;
           Uheight=currentY+150;
           Dheight=currentY-150;
           //if(x==Lwidth&&Dheight<y<Uheight)
    }

    public double getRwidth(){return Rwidth;}
    public double getLwidth(){
        return Lwidth;
    }
    public double getUheight(){
        return Uheight;
    }
    public double getDheight(){
        return Dheight;
    }
}
